export const educationOptions = [
    {
        label: '大专',
        value: 1
    },
    {
        label: '本科',
        value: 2
    },
    {
        label: '硕士',
        value: 3
    },
    {
        label: '博士',
        value: 4
    },
    {
        label: '其他',
        value: 5
    },
]
export const politicalOutlookOptions = [
        {
            label: '群众',
            value: 1
        },
        {
            label: '团员',
            value: 2
        },
        {
            label: '党员',
            value: 3
        },
        {
            label: '其他',
            value: 4
        }
    ]

export const BASIC_INFO: any = {
    avatar: {
        label: '头像',
        type: 'upload',
    },
    fullName: {
        label: '姓名',
        type: 'input',
        placeholder: '请输入姓名',
        required: true
    },
    gender: {
        label: '性别',
        type: 'select',
        options: [
            {
                label: '男',
                value: 1
            },
            {
                label: '女',
                value: 2
            },
        ],
        placeholder: '请选择性别'
    },
    phone: {
        label: '电话',
        type: 'input',
        placeholder: '请输入电话',
    },
    email: {
        label: '邮箱',
        type: 'input',
        placeholder: '请输入邮箱',
    },
    wxNumber: {
        label: '微信号',
        type: 'input',
        placeholder: '请输入微信号',
    },
    inWorkTime: {
        label: '参加工作时间',
        type: 'time',
        format: 'yyyy-LL',
        placeholder: '请选择时间',
    },
    desirePosition: {
        label: '求职意向',
        type: 'input',
        placeholder: '请输入求职意向',
    },
    desireCity: {
        label: '期望城市',
        type: 'input',
        placeholder: '请输入期望城市',
    },
    salary: {
        label: '期望薪资',
        type: 'input',
        placeholder: '请输入期望薪资',
    },
    nativePlace: {
        label: '籍贯',
        type: 'input',
        placeholder: '请输入籍贯',
    },
    politicalOutlook: {
        label: '政治面貌',
        type: 'select',
        options: politicalOutlookOptions,
        placeholder: '请选择政治面貌',
    },
    birthDay: {
        label: '生日',
        type: 'time',
        format: 'yyyy-LL-dd',
        placeholder: '请输入生日',
    },
    address: {
        label: '地址',
        type: 'input',
        placeholder: '请输入地址',
    },
    education: {
        label: '最高学历',
        type: 'select',
        options: educationOptions,
        placeholder: '请选择最高学历',
    },
}

export const EXPERIENCE: any = {
    work: {
        name: {
            label: '公司名称',
            type: 'input',
            placeholder: '请输入公司名称',
        },
        position: {
            label: '职位',
            type: 'input',
            placeholder: '请输入职位',
        },
        startTime: {
            label: '开始时间',
            type: 'time',
            format: 'yyyy-LL-dd',
            placeholder: '请输入开始时间',
            module: 'work',
        },
        endTime: {
            label: '结束时间',
            type: 'time',
            format: 'yyyy-LL-dd',
            placeholder: '请输入结束时间',
        },
        content: {
            label: '工作内容',
            type: 'textarea',
            placeholder: '请输入工作内容',
        },
        result: {
            label: '工作成果',
            type: 'textarea',
            placeholder: '请输入工作成果',
        }
    },
    project: {
        name: {
            label: '项目名称',
            type: 'input',
            placeholder: '请输入项目名称',
        },
        position: {
            label: '项目角色',
            type: 'input',
            placeholder: '请输入项目角色',
        },
        startTime: {
            label: '开始时间',
            type: 'time',
            format: 'yyyy-LL-dd',
            placeholder: '请输入开始时间',
        },
        endTime: {
            label: '结束时间',
            type: 'time',
            format: 'yyyy-LL-dd',
            placeholder: '请输入结束时间',
        },
        content: {
            label: '项目内容',
            type: 'textarea',
            placeholder: '请输入项目内容',
        },
        result: {
            label: '项目成果',
            type: 'textarea',
            placeholder: '请输入工作成果',
        }
    },
    education: {
        name: {
            label: '学校名称',
            type: 'input',
            placeholder: '请输入学校名称',
        },
        position: {
            label: '学历',
            type: 'select',
            options: educationOptions,
            placeholder: '请选择学历',
        },
        startTime: {
            label: '开始时间',
            type: 'time',
            format: 'yyyy-LL-dd',
            placeholder: '请输入开始时间',
        },
        endTime: {
            label: '结束时间',
            type: 'time',
            format: 'yyyy-LL-dd',
            placeholder: '请输入结束时间',
        },
        major: {
            label: '专业',
            type: 'input',
            placeholder: '请输入专业',
        },
        content: {
            label: '在校经历',
            type: 'textarea',
            placeholder: '请输入在校经历',
        },
    },
    internship: {
        name: {
            label: '公司名称',
            type: 'input',
            placeholder: '请输入公司名称',
        },
        position: {
            label: '职位',
            type: 'input',
            placeholder: '请输入职位',
        },
        startTime: {
            label: '开始时间',
            type: 'time',
            format: 'yyyy-LL-dd',
            placeholder: '请输入开始时间',
        },
        endTime: {
            label: '结束时间',
            type: 'time',
            format: 'yyyy-LL-dd',
            placeholder: '请输入结束时间',
        },
        content: {
            label: '工作内容',
            type: 'textarea',
            placeholder: '请输入工作内容',
        },
        result: {
            label: '工作成果',
            type: 'textarea',
            placeholder: '请输入工作成果',
        }
    },
    volunteer: {
        name: {
            label: '组织名称',
            type: 'input',
            placeholder: '请输入组织名称',
        },
        position: {
            label: '职位',
            type: 'input',
            placeholder: '请输入职位',
        },
        startTime: {
            label: '开始时间',
            type: 'time',
            format: 'yyyy-LL-dd',
            placeholder: '请输入开始时间',
        },
        endTime: {
            label: '结束时间',
            type: 'time',
            format: 'yyyy-LL-dd',
            placeholder: '请输入结束时间',
        },
        content: {
            label: '工作内容',
            type: 'textarea',
            placeholder: '请输入工作内容',
        },
        result: {
            label: '工作成果',
            type: 'textarea',
            placeholder: '请输入工作成果',
        }
    },
    society: {
        name: {
            label: '社团名称',
            type: 'input',
            placeholder: '请输入社团名称',
        },
        position: {
            label: '职位',
            type: 'input',
            placeholder: '请输入职位',
        },
        startTime: {
            label: '开始时间',
            type: 'time',
            format: 'yyyy-LL-dd',
            placeholder: '请输入开始时间',
        },
        endTime: {
            label: '结束时间',
            type: 'time',
            format: 'yyyy-LL-dd',
            placeholder: '请输入结束时间',
        },
        content: {
            label: '工作内容',
            type: 'textarea',
            placeholder: '请输入参加社团的内容',
        },
        result: {
            label: '工作成果',
            type: 'textarea',
            placeholder: '请输入工作成果',
        }
    }
}

export const OTHERS: any = {
    advantage: {
        type: 'textarea',
        placeholder: '请输入个人优势',
    },
    skill: {
        type: 'textarea',
        placeholder: '请输入技能',
    },
    certificate: {
        type: 'textarea',
        placeholder: '请输入证书',
    },
    hobby: {
        type: 'textarea',
        placeholder: '请输入兴趣爱好',
    },
    evaluation: {
        type: 'textarea',
        placeholder: '请输入自我评价',
    },
}

export const DEFAULT_VALUE: any = {
    cvName:"我的简历",
    basicInfo: {
        title: '基础信息',
        // 用于控制显示和排序
        orderShow: [
            "avatar",
            "fullName",
            "gender",
            "education",
            "email",
            "phone",
            "wxNumber",
            "address",
            "birthDay",
            "desirePosition",
            "nativePlace",
            "politicalOutlook"
        ],
        avatar: '',
        fullName: '',
        gender: 1,
        phone: '',
        email: '',
        address: '',
        inWorkTime: '',
        birthDay: '',
        desireCity: '',
        desirePosition: '',
        salary: '',
        nativePlace: '',
        politicalOutlook: '',
        wxNumber: '',
        education: '',
    },
    detailInfo: [
        {
            title: '个人优势',
            type: 'advantage',
            classify: 'OTHERS',
            isShow: true,
            value: ''
        },
        {
            title: '教育经历',
            type: 'education',
            classify: 'EXPERIENCE',
            isShow: true,
            value: []
        },
        {
            title: '工作经历',
            type: 'work',
            classify: 'EXPERIENCE',
            isShow: true,
            value: []
        },
        {
            title: '项目经验',
            type: 'project',
            classify: 'EXPERIENCE',
            isShow: true,
            value: []
        },
        {
            title: '实习经历',
            type: 'internship',
            classify: 'EXPERIENCE',
            isShow: true,
            value: []
        },
        {
            title: '志愿经历',
            type: 'volunteer',
            classify: 'EXPERIENCE',
            isShow: false,
            value: []
        },
        {
            title: '社团经历',
            type: 'society',
            classify: 'EXPERIENCE',
            isShow: false,
            value: []
        },
        {
            title: '技能',
            type: 'skill',
            classify: 'OTHERS',
            isShow: false,
            value: ''
        },
        {
            title: '证书',
            type: 'certificate',
            classify: 'OTHERS',
            isShow: true,
            value: ''
        },
        {
            title: '兴趣爱好',
            type: 'hobby',
            classify: 'OTHERS',
            isShow: true,
            value: ''
        },
        {
            title: '自我评价',
            type: 'evaluation',
            classify: 'OTHERS',
            isShow: false,
            value: ''
        },
    ]
}